package com.ego.controller;

import com.ego.commons.pojo.EgoResult;
import com.ego.service.TbItemDescService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title
 * @Author Lyg
 * @Description:
 */
@RestController
public class TbItemDescController {

    @Autowired
    private TbItemDescService tbItemDescService;

    @RequestMapping("/rest/item/query/item/desc/{itemId}")
    public EgoResult showDesc(@PathVariable long itemId){
        return  tbItemDescService.showDesc(itemId);
    }
}
